package com.glsc.ngateway.common.base.domain.mysql.opmanage.report.excel;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * @author: hc
 * @date: 2022/7/12 15:12
 * @description: 深交所新增初始交易规模(资管)
 */
public class RiskdailyStockRepoSzAmId implements Serializable {

    private static final long serialVersionUID = 1L;
    private Date date;
    private String source;

    public RiskdailyStockRepoSzAmId() {
        super();
    }

    public RiskdailyStockRepoSzAmId(String source, Date date) {
        super();
        this.source = source;
        this.date = date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Date getDate() {
        return date;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getSource() {
        return source;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        RiskdailyStockRepoSzAmId that = (RiskdailyStockRepoSzAmId) o;
        return Objects.equals(date, that.date) && Objects.equals(source, that.source);
    }

    @Override
    public int hashCode() {
        return Objects.hash(source, date);
    }
}
